<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">{{generateGreeting()}}好,{{delegate.name}}!</h1>
    </div>
</div>

<div class="row">
    <!-- 快捷操作栏 -->
    <div class="col-lg-3 col-md-5">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <i class="fa fa-dashboard"></i> 快捷操作
            </div>

            <div class="panel-body" style="height:300px;">
                <div class="input-group custom-search-form">
                    <input type="text" class="form-control" placeholder="输入待查询提案的标题">
                    <span class="input-group-btn">
                    <button class="btn btn-default" type="button">
                        <i class="fa fa-search"></i>
                    </button>
                    </span>
                </div>
                <div style="margin-top: 15px">
                    <ul class="list-group">
                        <li class="list-group-item">
                            <a href="#/writeProposal">
                                <i class="fa fa-pencil"></i> 写新提案
                            </a>
                        </li>
                        <li class="list-group-item">
                            <a href="#/myProposal">
                                <i class="fa fa-magic"></i> 我发布的提案
                            </a>
                        </li>
                        <li class="list-group-item">
                            <a href="#/viewMessages">
                                <i class="fa fa-envelope"></i> 查看消息
                            </a>
                        </li>
                        <li class="list-group-item">
                            <a href="http://www.qfnu.edu.cn">
                                <i class="fa fa-book"></i> 曲师大首页
                            </a>
                        </li>
                        <li class="list-group-item">
                            <a href="http://202.194.179.45:8080/portal/index">
                                <i class="fa fa-phone-square"></i> 电话查询
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <div class="col-lg-4 col-md-5" id="myProposal">
        <div class="panel panel-primary">
            <div class="panel-heading">
                我的提案
            </div>
            <div class="panel-body" style="height: 260px;">
                <ul class="list-group">
                    <li class="list-group-item">草稿:{{myProposalCount.draft}}篇</li>
                    <li class="list-group-item">待审核:{{myProposalCount.unchecked}}篇</li>
                    <li class="list-group-item">待附议:{{myProposalCount.waitSecondMotion}}篇</li>
                    <li class="list-group-item">已实施:{{myProposalCount.puttedIntoEffect}}篇</li>
                    <li class="list-group-item">未通过:{{myProposalCount.invalid}}篇</li>
                </ul>
            </div>
            <div class="panel-footer">
                <a href="#/myProposal">查看详情</a>
            </div>
        </div>
    </div>

    <!-- 今日天气栏 -->
    <div class="col-lg-4 col-md-6">
        <div class="panel panel-green">
            <div class="panel-heading">
                <i class="fa fa-cloud"></i> 今日天气
            </div>
            <div class="panel-body">
                <div style="margin:-5px auto;width: 255px;height: 281px">
                    <iframe name="weather_inc"
                        src="http://i.tianqi.com/index.php?c=code&id=55"
                        width="255"
                        height="280"
                        frameborder="0"
                        marginwidth="0"
                        marginheight="0"
                        scrolling="no"></iframe>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="row">
    <div class="col-lg-8 col-md-6" id="latestProposal">
        <div class="panel panel-primary">
            <div class="panel-heading">
                最新提案
            </div>
            <div class="panel-body">
                <ul class="list-group">
                    <li class="list-group-item" ng-if="newProposalList.length == 0">
                        <span style="color:#bbb">暂无最新提案</span>
                    </li>
                    <li class="list-group-item"
                        ng-repeat="proposal in newProposalList | orderBy:'updateTime':true">
                        <a ng-href="#/viewProposal/{{proposal.id}}"
                                style="text-decoration: none">
                            <div class="pull-left">{{proposal.title}}</div>
                            <div class="pull-right">
                                {{proposal.updateTime | date : 'yyyy-MM-dd'}}
                            </div>
                            <span>&nbsp;</span>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>


